package sample.googlecode.genericdao.oldworld.service;

import java.util.List;

import sample.googlecode.genericdao.oldworld.model.Citizen;
import sample.googlecode.genericdao.oldworld.model.User;

import com.googlecode.genericdao.search.ISearch;
import com.googlecode.genericdao.search.SearchResult;

public interface UserService {
	
	public void save(User user);
	
	public void delete(Long id);

	public List<User> findAll();

	public List<User> search(ISearch search);

	public SearchResult<User> searchAndCount(ISearch search);

	public User findById(Long id);

	public User findByName(String name);

	public void flush();
}
